import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';


import { HomeComponent } from './home/home.component';
import { MessageComponent } from './message/message.component';
import { ShopComponent } from './shop/shop.component';
import { MineComponent } from './mine/mine.component';
import { HomeDetailComponent } from './home-detail/home-detail.component';
import { SettingComponent } from './mine/setting/setting.component';
import { ShopDetailComponent } from './shop-detail/shop-detail.component';
import { EditingComponent } from './mine/editing/editing.component';
import { MessageChatComponent } from './message/message-chat/message-chat.component';


const routes: Routes = [ 
  {path: 'home', component:HomeComponent},
  {path: 'message', component:MessageComponent},
  {path: 'shop', component:ShopComponent},
  {path: 'mine', component:MineComponent},
  {path: 'home/detail', component:HomeDetailComponent},
  {path: 'mine/set', component:SettingComponent},
  {path: 'shop/detail', component:ShopDetailComponent},
  {path: 'mine/edt', component:EditingComponent},
  {path: 'message/chat', component:MessageChatComponent},
  {path: '**', redirectTo:'home'},

];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class BvideoRoutingModule { }
